package com.example.elm_server_api.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @TableName sys_user
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(exclude = {"roles"})
public class SysUser implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private String username;

    // 1:M 关联映射
    private List<Role> roles = new ArrayList<>();

}